import React, { Component } from 'react';

export default class App extends Component {
  constructor(props){
    super(props)
    this.state = {
      txt: 'sssss'
    }
  }
  sendRequest() {
    this.setState({txt: 'noooo'})
  }
  render() {
    return (
      <div>
        <h1 onClick={this.sendRequest.bind(this)}>{this.state.txt}</h1>
      </div>
    );
  }
}